<#assign ctx=springMacroRequestContext.contextPath />
<#include "/macro/publicMacro.ftl">
<#import "/macro/pagination.ftl" as Pagination>

<@header title="登录用户表简介">
    <link href="${ctx}/resource/common/css/pagination.css" rel="stylesheet">
    <script src="${ctx}/resource/common/js/pagination.js"></script>
</@header>

<@body>
<h2 class="module-title">登录用户表详情</h2>

    <div class="alert alert-primary" role="alert">
        <#--<button class="btn btn-info" onclick="javascript: history.back(-1);return false;" >返回</button>-->
        <a class="btn btn-info btn-sm" href="${ctx}/user/list" role="button" aria-pressed="true">返回</a>
    </div>

<div class="table-responsive">
    <table class="table">
        <thead>
            <th width="100">名称</th>
            <th>值</th>
        </thead>
        <tbody>
            <tr>
                <th>别称</th>
                <th>${user.nickName!}</th>
            </tr>
            <tr>
                <th>登录名称</th>
                <th>${user.userName!}</th>
            </tr>
            <tr>
                <th>邮箱</th>
                <th>${user.maskEmail!'未设置'}</th>
            </tr>
            <tr>
                <th>手机号</th>
                <th>${user.maskPhone!'未设置'}</th>
            </tr>
            <tr>
                <th>用户状态</th>
                <th>
                    <#if user.status == 'enable'><h5><span class="badge badge-success">${user.status.desc!}</span></h5></#if>
                    <#if user.status == 'disable'><h5><span class="badge badge-secondary">${user.status.desc!}</span></h5></#if>
                </th>
            </tr>
            <tr>
                <th>创建时间</th>
                <th>${(user.createTime?string('yyyy-MM-dd hh:mm:ss'))!} </th>
            </tr>
            <tr>
                <th>修改时间</th>
                <th>${(user.updateTime?string('yyyy-MM-dd hh:mm:ss'))!} </th>
            </tr>
        </tbody>
    </table>
</div>
</@body>

<@footer>

</@footer>